import { http } from '../http.config'

// 用户模块接口
export const userApi = {
    // 登录
    login: (data) => http.post('/dt_login', data),
    // 学员注册
    studentSignUp: (data) => http.post('/education/student/sign_up', data),
    // 短信服务
    sms: (data) => http.post('/sms', data),
    // 学员认证v
    studentVerification: (data) => http.post('/education/student/verification', data),
    //考核任务--处理
    paperTaskSave: (data) => http.post('/education/student/paper/task', data),
    // 学员个人简历--提交
    studentResumeSave: (data) => http.post('/education/student/resume', data),
    // 通用上传文件接口
    uploadMinioFlie: (data) => http.post('/upload/minio', data),
    // 个人信息
    getUserInfo: (params) => http.get('/education/student/user_info',params),
    // 学员考核系统首页--考核记录列表
    getStudentExamRecord: (params) => http.get('/education/student/exam_record',params),
    //加载岗位信息数据
    getChildOptions: (params) => http.get('/education/admin/dictionary/child_options',params),
    //单位下拉
    getcompanyOptions: (params) => http.get('/education/admin/company/options',params),
    // 学员考核系统首页--考核记录列表
    getStudentExamRecordDetail: (pk) => http.get(`/education/student/exam_record/${pk}`),
    // 学员考核系统首页--考核记录章节详情
    getStudentchapterRecord: (pk) => http.get(`/education/student/chapter_record/${pk}`),
    // 能力证书--详情
    getStudentCertDetail: (pk) => http.get(`/education/student/cert/${pk}`),
    // 学员考核系统首页--学员能力值数据
    getStudentUserAbility: (params) => http.get('/education/student/user_ability',params),
    // 学员个人简历
    getStudentResume: (params) => http.get('/education/student/resume',params),
    // 学员考核系统首页--能力证书
    getStudentCert: (params) => http.get('/education/student/cert',params),
    //学员考核系统首页--学员成长记录 tab 1--分类记录 2--岗位记录
    getStudentPointsRecord:(data)=>http.post('/education/student/points_record',data),
    //获取岗位查询列表
    getJobList:(params)=> http.get('/education/student/job_query',params),
    //获取岗位查询列表
    getDictionaryOptions:(params)=> http.get('/education/admin/dictionary/child_options',params),
    //考核任务--详情
    getpaperTask:(params)=> http.get('/education/student/paper/task',params),
    //行业能力值数据
    getAbilityOptions:(params)=> http.get('/education/admin/ability/options',params),
    // 更新用户信息（示例）
    updateUserInfo: (data) => http.put(`/education/student/user`, data),
    // 修改密码
    userPasswordSave: (data) => http.put('/education/student/user/password', data),
    //忘记密码
    forgetPassword: (data) => http.post('/forget_password', data),
    //单个能力值
    getAbilityValue:(params)=> http.get('/education/student/job_ability',params),
}